import request from './request'; // 导入 Axios 实例

// 创建预约
export function createAppointment(data) {
    return request.post('/appoint/createAppointment', data)
}   

// 查询某日上班的医生
export function getDoctorsByDate(data) {
    return request.post('/appoint/getDoctorsByDate', data)
}

// 获取预约信息
export function getAppointInfo(data) {
    return request.post('/appoint/getAppointInfo', data)
}

// 取消预约
export function cancelAppointment(data) {
    return request.post('/appoint/cancelAppointment',data)
}